package Program.Information;

import com.sun.org.apache.xml.internal.security.Init;

public class Repair {
    //报修单编号
    private int id;
    //用户id
    private int userID;
    //物品
    private String article;
    //住址
    private String place;
    //报修时间
    private String startTime;
    //维修时间
    private String endTime;
    //报修详情
    private String details;
    //处理状态
    private String state;

    public Repair(int id, int userID, String startTime, String state) {
    }



    public Repair(int id, String article, String place, String startTime,
                  String endTime, String details, String state) {
        this.id = id;
        this.article = article;
        this.place = place;
        this.startTime = startTime;
        this.endTime = endTime;
        this.details = details;
        this.state = state;
    }

    public Repair(int id, int userID, String article, String place,
                  String startTime, String endTime, String details, String state) {
        this.id = id;
        this.userID = userID;
        this.article = article;
        this.place = place;
        this.startTime = startTime;
        this.endTime = endTime;
        this.details = details;
        this.state = state;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public String getArticle() {
        return article;
    }

    public void setArticle(String article) {
        this.article = article;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Repair{" +
                "id=" + id +
                ", article='" + article + '\'' +
                ", place='" + place + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", details='" + details + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
